import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from "../views/Login";
import Register from "../views/Register";
import Home from "../views/Home";
import HomePage from "../views/navigation/HomePage";
import Change from "../views/navigation/center/Change";
import Center from "../views/navigation/center/Center";
import Menber from "../views/navigation/member/Menber";
import Category from "../views/navigation/category/Category";
import Category_Add from "../views/navigation/category/Category_Add";
import Information from "../views/navigation/information/Information";
import Information_Add from "../views/navigation/information/Information_Add";
import Inventory from "../views/navigation/inventory/Inventory";
import InventoryStock from "../views/navigation/inventory/InventoryStock";
import InventoryIssue from "../views/navigation/inventory/InventoryIssue";
import Delivery from "../views/navigation/delivery/Delivery";
import Warehousing from "../views/navigation/warehousing/Warehousing";
import Statistics from "../views/navigation/statistics/Statistics";
import Statistics_Add from "../views/navigation/statistics/Statistics_Add";
import Service from "../views/navigation/service/Service";
import Service_Update from "../views/navigation/service/Service_Update";
import MessageBoard from "../views/navigation/message/MessageBoard";
import CarouselChart from "../views/navigation/system/CarouselChart";
import Journalism from "../views/navigation/system/Journalism";
import CarouselChart_Update from "../views/navigation/system/CarouselChart_Update";
import Journalism_Add from "../views/navigation/system/Journalism_Add";
import Reception_HomePage from "../views/reception/Reception_HomePage";
import Recommend from "../views/reception/Recommend";


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/page',
    name: 'HomePage',
    component: HomePage
  },
  {
    path: '/change',
    name: 'Change',
    component: Change
  },
  {
    path: '/center',
    name: 'Center',
    component: Center
  },
  {
    path: '/menber',
    name: 'Menber',
    component: Menber
  },
  {
    path: '/category',
    name: 'Category',
    component: Category
  },
  {
    path: '/category_add',
    name: 'Category_Add',
    component: Category_Add
  },
  {
    path: '/information',
    name: 'Information',
    component: Information
  },
  {
    path: '/information_add',
    name: 'Information_Add',
    component: Information_Add
  },
  {
    path: '/inventory',
    name: 'Inventory',
    component: Inventory
  },
  {
    path: '/inventory_stock',
    name: 'InventoryStock',
    component: InventoryStock
  },
  {
    path: '/inventory_issue',
    name: 'InventoryIssue',
    component: InventoryIssue
  },
  {
    path: '/delivery',
    name: 'Delivery',
    component: Delivery
  },
  {
    path: '/warehousing',
    name: 'Warehousing',
    component: Warehousing
  },
  {
    path: '/statistics',
    name: 'Statistics',
    component: Statistics
  },
  {
    path: '/statistics_add',
    name: 'Statistics_Add',
    component: Statistics_Add
  },
  {
    path: '/service',
    name: 'Service',
    component: Service,
  },
  {
    path: '/service_update',
    name: 'Service_Update',
    component: Service_Update
  },
  {
    path: '/message',
    name: 'MessageBoard',
    component: MessageBoard
  },
  {
    path: '/carousel',
    name: 'CarouselChart',
    component: CarouselChart
  },
  {
    path: '/carousel_update',
    name: 'CarouselChart_Update',
    component: CarouselChart_Update
  },
  {
    path: '/journalism',
    name: 'Journalism',
    component: Journalism
  },
  {
    path: '/journalism_add',
    name: 'Journalism_Add',
    component: Journalism_Add
  },
  {
    path: '/reception_page',
    name: 'Reception_HomePage',
    component: Reception_HomePage
  },
  {
    path: '/recommend',
    name: 'Recommend',
    component: Recommend
  },


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
